﻿using System.Collections.Generic;

namespace EYCmsAdmin.Domain.Models
{
    public class EducationInstitution : BaseDomainModel
    {
        public virtual string Name { get; set; }

        public virtual string City { get; set; }

        public virtual string Region { get; set; }

        public virtual string Email { get; set; }

        public virtual string WebSite { get; set; }

        public virtual string Director { get; set; }

        public virtual string Phone { get; set; }

        public virtual IEnumerable<StudyGroup> StudyGroups { get; set; } 

        public override int GetHashCode()
        {
            return string.Concat(Name, Id, City, Region, Email, WebSite, Director,Phone).GetHashCode();
        }
    }
}


/*Id int primary key not null identity(1,1),
	Name nvarchar(50) not null,
	City nvarchar(50) not null,
	Region nvarchar(50),
	Email nvarchar(50),
	WebSite nvarchar(50),
	Director nvarchar(50),
	Phone nvarchar(50)*/